<%--
  Created by IntelliJ IDEA.
  User: 欣
  Date: 2022/4/29
  Time: 18:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<a href="/user/toAdd">添加</a>
<table>
    <tr>
        <td>编号</td>
        <td>姓名</td>
        <td>操作</td>
    </tr>
    <c:forEach var="obj" items="${list}">
        <tr>
            <td>${obj.id}</td>
            <td>${obj.account}</td>
            <td>
                    <%--                <a href="${pageContext.request.contextPath}/user/del?id=${obj.id}">删除</a>--%>
                <a href="${pageContext.request.contextPath}/user/del/${obj.id}">删除</a>
            </td>
        </tr>
    </c:forEach>
</table>

</body>
</html>
